<?php

use yii\helpers\Html;
use yii\grid\GridView;

/* @var $this yii\web\View */
/* @var $searchModel \ua_backend\models\search\ShopsSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = Yii::t('app', 'Shops');
//$this->params['breadcrumbs'][] = $this->title;
?>
<div class="rado-locations-index">
    <div class="flex flex-between align-center">
        <?= Html::a(Yii::t('app', 'Create Shop'), ['create'], ['class' => 'btn btn-success']) ?>
    </div>


    <?= GridView::widget([
        'dataProvider' => $dataProvider,
        'filterModel' => $searchModel,
        'layout' => '<div class="box-body">{items}</div>
                     <div class="box-footer">
                        {summary}
                        <div class="_pager">{pager}</div>
                     </div>',
        'columns' => [
            'id',
            'code',
            'uuid',
            'shop',
            'address',
            'role',
            [
                'label' => 'created',
                'attribute' => 'created_at',
                'format' => ['datetime', 'php:Y-m-d H:i:s'],
            ],

            [
                'class' => 'yii\grid\ActionColumn'
            ],
        ],
    ]); ?>
</div>

<script src="/js/jquery-2.2.3.min.js"></script>
